package alumninet.persistence.entities.publication;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.xml.bind.annotation.XmlRootElement;

import alumninet.persistence.entities.BaseEntity;
import alumninet.persistence.entities.user.AlumniUser;

/**
 * Entity implementation class for Entity: Publication
 * 
 */
@XmlRootElement
@Entity
public class AlumniPost extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;
	@Basic
	private Date sinceDate;
	private Date dueDate;
	@ManyToMany
	private List<AlumniUser> owner;

	public Date getSinceDate() {
		return sinceDate;
	}

	public void setSinceDate(Date sinceDate) {
		this.sinceDate = sinceDate;
	}

	public Date getDueDate() {
		return dueDate;
	}

	public void setDueDate(Date dueDate) {
		this.dueDate = dueDate;
	}



	public AlumniPost() {
		super();
	}

	public List<AlumniUser> getOwner() {
	    return owner;
	}

	public void setOwner(List<AlumniUser> param) {
	    this.owner = param;
	}

	

}
